all: golomb python

golomb:
	@cd src; make
	
.PHONY: python clean install

python:
	@cd python;	make

clean:
	@cd src; rm -rf *.o *~ *.pyc objects 
	@cd python; rm -rf *~ *.pyc
	@cd include; rm -rf *~
	@rm -rf *~ msys/*~ 

GDIR=GolombCodec	
install:
	@mkdir -p /usr/bin/$(GDIR)
	@cp bin/* /usr/bin/$(GDIR)
	@cp golomb.sh /usr/bin/golomb
	@chmod +x /usr/bin/golomb
	